package hn.cch.spring.core.annotation.component;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@ComponentScan(value = {"hn.cch.bean.component"})
@Configuration
public class ComponentConfiguration {

    public BeanImplement0 beanImplement0(){
        return new BeanImplement0();
    }

    @Bean
    public BeanImplement1 beanImplement1(ComponentBean componentBean){
        System.out.println("beanImplement1");
        return new BeanImplement1();
    }



    @Bean(initMethod = "initMethod")
    public ComponentBean componentBean() {
        System.out.println("componentBean");
        return new ComponentBean();
    }

}
